# Create your views here.
from django.http  import HttpResponse

def book(request):
    return HttpResponse("图书首页")

def book_detail(request,book_id,category_id):
    text = "您获取的图书id是:%s,图书分类是:%s" % (book_id,category_id)
    return HttpResponse(text)

def author(request):
    author_id = request.GET['id']
    text = "作者的ID是:%s" % author_id
    return HttpResponse(text)

def publisher(request,publisher_id):
    text = "出版社的ID是:%s" % publisher_id
    return HttpResponse(text)